﻿@model NoPapel.UI.MVC.Models.Post

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>NewPost</title>
</head>
<body>
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>Post</legend>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Title)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Content)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Content)
                @Html.ValidationMessageFor(model => model.Content)
            </div>
    
@*            <div class="editor-label">
                @Html.LabelFor(model => model.PublishDate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.PublishDate)
                @Html.ValidationMessageFor(model => model.PublishDate)
            </div>*@
    
            <p>
                <input type="submit" value="Post" />
            </p>
        </fieldset>
    }
    
    <div>
        @Html.ActionLink("Back", "Index")
    </div>
</body>
</html>

